class UserModel {
  String userId;
  String userName;
  bool ifMale;
  String avatarUrl;

  UserModel(
      {required this.userId,
      required this.userName,
      required this.ifMale,
      required this.avatarUrl});

  factory UserModel.fromJson(Map<String, dynamic> json) {
    return UserModel(
      userId: json['userId'] as String,
      userName: json['userName'] as String,
      ifMale: json['ifMale'],
      avatarUrl: json['avatarUrl'] as String,
    );
  }

  Map<String, dynamic> toJson() => {
        'userId': userId,
        'userName': userName,
        'ifMale': ifMale,
      };
}
